//
//  YHEmotcion.swift
//  YHWeibo
//
//  Created by yuhao.mac on 16/7/5.
//  Copyright © 2016年 yuhao.mac. All rights reserved.
//

import UIKit

class YHEmotcion: NSObject {
    //emoji表情使用
    var code: String?
    //表情类型
    var type: String?{
        didSet{
            if type == "0"{
                isEmoji = false
            }else{
                isEmoji = true
            }
        }
    }
    //图片表情
    var chs: String?
    //图片名
    var png: String?
    
    
    //判断是否是emoji表情
    var isEmoji: Bool = false
    
    //判断具体是哪种表情类型
    var path: String?
    
    init(dict:[String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
}
